{% extends "BillingBundle::admin_layout.html.twig" %}

{% macro field(row, lname, label) %}
    <tr>
        <td class="label">
            <label id="l{{ lname }}" for="{{ lname }}">{{ label }}:</label>
        </td>
        <td class="field">
            {{ form_widget(row) }}
        </td>
        <td class="status"></td>
        <td>
            {{ form_errors(row) }}
        </td>
    </tr>
{% endmacro %}

{% block content %}

<link rel="stylesheet" type="text/css" media="screen" href="{{ asset('bundles/billing/css/validate.css') }}" />
<script src="{{ asset('bundles/billing/js/jquery.js') }}" type="text/javascript"></script>
<script src="{{ asset('bundles/billing/js/jquery.validate.js') }}" type="text/javascript"></script>
<script src="{{ asset('bundles/billing/js/validate_shared_tarif.js') }}" type="text/javascript"></script>

<h4>Создание нового тарифа на виртуальный хостинг:</h4>

<div id="add_box">
  <div id="add_wrap">
    <form id="add_form" method="post" action="#">
        <table>
            для установки параметру значения "безлимит" введите "-1"
            {{ _self.field(form.name, 'name', 'Название') }}
            {{ _self.field(form.cost, 'cost', 'Стоимость в день') }}
            {{ _self.field(form.hdd, 'hdd', 'Hdd') }}
            {{ _self.field(form.cron_access, 'cron_access', 'доступ к cron') }}
            {{ _self.field(form.ftp_access, 'ftp_access', 'доступ к ftp') }}
            {{ _self.field(form.dns_access, 'dns_access', 'доступ к dns') }}
            {{ _self.field(form.email_access, 'email_access', 'доступ к email') }}
            {{ _self.field(form.mysql_access, 'mysql_access', 'доступ к mysql') }}
            {{ _self.field(form.backup_access, 'backup_access', 'доступ к backup') }}
            {{ _self.field(form.ssh_access, 'ssh_access', 'доступ к SSH') }}
            {{ _self.field(form.ssl_access, 'ssl_access', 'доступ к SSL') }}
            {{ _self.field(form.cgi_bin_access, 'cgi_bin_access', 'доступ к CGI-Bin') }}
            {{ _self.field(form.perl_php_access, 'perl_php_access', 'доступ к Perl/PHP') }}
            {{ _self.field(form.anonymous_ftp_access, 'anonymous_ftp_access', 'доступ к анонимному FTP') }}
            {{ _self.field(form.ftp_count, 'ftp_count', 'количество ftp') }}
            {{ _self.field(form.mysql_count, 'mysql_count', 'количество mysql') }}
            {{ _self.field(form.site_count, 'site_count', 'количество сайтов') }}
            {{ _self.field(form.trafic_count, 'trafic_count', 'количество трафика') }}
            {{ _self.field(form.email_count, 'email_count', 'количество email') }}
            {{ _self.field(form.domain_count, 'domain_count', 'количество доменов') }}
            {{ _self.field(form.add_ip_cost, 'add_ip_cost', 'стоимость добавления ip') }}
            {{ _self.field(form.is_active, 'is_active', 'Активен') }}
            {{ form_widget(form._token) }}
        <tr>
            <td>
            <div class="field">
                <input name="add_tarif" type="submit" value="Create tarif"/>
            </div>
            </td>
        </tr>
        </table>
    </form>
   </div>
</div>


{% endblock %}
